//
//  CustomNavView.h
//  Doctor
//
//  Created by 阳光 on 16/9/28.
//  Copyright © 2016年 阳光. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol CustomNavViewDelegate <NSObject>

-(void)leftBtnEvent;

-(void)rightBtnEvent;

@end

@interface CustomNavView : UIView

-(instancetype)initWithTitle:(NSString *)title leftBtnImage:(NSString *)leftBtnImage hasLeftBtnImage:(BOOL)hasLeftBtnImage    rightBtnTitle:(NSString *)rightBtnTitle hasRightBtnTitle:(BOOL)hasRightBtnTitle;

@property(nonatomic,strong)NSString *navTitle;

@property(nonatomic,strong)UILabel *navTitleLabel;

@property(nonatomic,strong)UIButton *leftBtn;

@property(nonatomic,strong)UIButton *rightBtn;

@property(nonatomic,strong)NSString *leftBtnImg;

@property(nonatomic,strong)NSString *rightBtnTitle;

@property(nonatomic,strong)UIView *bottomLine;

@property(nonatomic,weak)id<CustomNavViewDelegate>delegate;

@end
